<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<%@ include file="/commons/include/head-meta.inc.jsp"%>	
<script type="text/javascript">
	$(document).ready(function(){
		$('#addFile').click(function(){
			var fileHtml=$('#fileTemplate').html();
			$('#addFieDivId').append(fileHtml+'<br/>');
		});
		
		$('#upladFileBtn').click(function(){
			var count=0;
			var uploads=$("input[name='uploads']");
			$.each(uploads,function(index,obj){
				if($(obj).val()!=''){
					count++;
				}
			});			
			if(count>0){
				document.forms[0].submit();
			}else{
				alert('请至少选择一个要上传的模板文件！');
			}
		});
		
		
	});
</script>
</head>
<body style="margin: 0;padding: 0">
	<form action="appDocTemplete_saveUpload.action" method="post" enctype="multipart/form-data">
	<div style="margin: 10">
	<table style="width: 98%" border="0" cellpadding="0" cellspacing="0" background="<s:url value="/images/new/gxzl_index_2.gif"/>">
		<tr>
			<td width="20" height="32">&nbsp;</td>
			<td width="20"><img src="<s:url value="/images/new/dq_dot.gif"/>" width="15" height="12" /></td>
			<td>当前位置：需求单模板上传</td>
		</tr>
	</table>
	
	<button id="upladFileBtn" style="margin-right: 6px">上传</button>
	<button id="addFile" style="margin-right: 6px">添加</button>
	
	<div id="fileTemplate">模板文件：<input type="file" name="uploads" style="width: 300px"/></div>
	<div id="addFieDivId">
	
	</div>
	</div>
	
	</form>			
</body>
</html>
